import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listDingding(query) {
  return request({
    url: '/mes/pro/sd/feedback/dingding/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getDingding(recordId) {
  return request({
    url: '/mes/pro/sd/feedback/dingding/' + recordId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addDingding(data) {
  return request({
    url: '/mes/pro/sd/feedback/dingding',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateDingding(data) {
  return request({
    url: '/mes/pro/sd/feedback/dingding',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delDingding(recordId) {
  return request({
    url: '/mes/pro/sd/feedback/dingding/' + recordId,
    method: 'delete'
  })
}

// 同步物料列表
export function syncSDFeedback() {
  return request({
    url: '/mes/pro/sd/feedback/dingding/sync',
    method: 'get'
  })
}
